import 'package:flutter/material.dart';
import 'package:shirne_app/l10n/gen/app_localizations.dart';

extension LocaleContext on BuildContext {
  AppLocalizations get l10n => AppLocalizations.of(this)!;
}

extension ListNullable<T> on List<T> {
  T? atOrNull(index) => index >= 0 && index < length ? this[index] : null;
}
